package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class SetmealActivty implements Serializable {
    /**
     * 套餐参加活动编号
     */
    private Integer said;

    /**
     * 活动编号
     */
    private Integer arid;

    /**
     * 套餐编号
     */
    private String smid;

    /**
     * 计划数量
     */
    private Integer smnum;

    /**
     * 实际完成数量
     */
    private Integer resultnum;

    private static final long serialVersionUID = 1L;

    public Integer getSaid() {
        return said;
    }

    public void setSaid(Integer said) {
        this.said = said;
    }

    public Integer getArid() {
        return arid;
    }

    public void setArid(Integer arid) {
        this.arid = arid;
    }

    public String getSmid() {
        return smid;
    }

    public void setSmid(String smid) {
        this.smid = smid;
    }

    public Integer getSmnum() {
        return smnum;
    }

    public void setSmnum(Integer smnum) {
        this.smnum = smnum;
    }

    public Integer getResultnum() {
        return resultnum;
    }

    public void setResultnum(Integer resultnum) {
        this.resultnum = resultnum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SetmealActivty other = (SetmealActivty) that;
        return (this.getSaid() == null ? other.getSaid() == null : this.getSaid().equals(other.getSaid()))
            && (this.getArid() == null ? other.getArid() == null : this.getArid().equals(other.getArid()))
            && (this.getSmid() == null ? other.getSmid() == null : this.getSmid().equals(other.getSmid()))
            && (this.getSmnum() == null ? other.getSmnum() == null : this.getSmnum().equals(other.getSmnum()))
            && (this.getResultnum() == null ? other.getResultnum() == null : this.getResultnum().equals(other.getResultnum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSaid() == null) ? 0 : getSaid().hashCode());
        result = prime * result + ((getArid() == null) ? 0 : getArid().hashCode());
        result = prime * result + ((getSmid() == null) ? 0 : getSmid().hashCode());
        result = prime * result + ((getSmnum() == null) ? 0 : getSmnum().hashCode());
        result = prime * result + ((getResultnum() == null) ? 0 : getResultnum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", said=").append(said);
        sb.append(", arid=").append(arid);
        sb.append(", smid=").append(smid);
        sb.append(", smnum=").append(smnum);
        sb.append(", resultnum=").append(resultnum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}